﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="StockStatus.aspx.cs" Inherits="Webbshop.StockStatus" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <h1><asp:Label ID="lblTitle" runat="server" Text="Lagerstatus" /></h1>
        <p>
            <asp:Label ID="lblIntroduction" runat="server" Text="Här kan du som Admin få översikt över lagerstatus och fylla på." />
        </p>
        <p>
            <asp:GridView ID="gridOrders" runat="server"  
                AutoGenerateColumns="False" DataKeyNames="productId" OnRowEditing="gridOrders_RowEditing" OnRowUpdating="gridOrders_RowUpdating" OnRowCancelingEdit="gridOrders_RowCancelingEdit" >
                
                <SelectedRowStyle BackColor="#33CCFF" />
                <Columns>
                    <asp:BoundField DataField="productId" HeaderText="productId" 
                        InsertVisible="False" ReadOnly="True" SortExpression="productId" />
                    <asp:BoundField DataField="name" HeaderText="name" SortExpression="name" 
                        InsertVisible="False" ReadOnly="True" />
                    <asp:BoundField DataField="price" HeaderText="price" SortExpression="price" 
                        InsertVisible="False" ReadOnly="True" />
                    <asp:BoundField DataField="stockStatus" HeaderText="stockStatus" 
                        ReadOnly="false" SortExpression="stockStatus" />
                    
                    <asp:CommandField ShowEditButton="True" ButtonType="Button" EditText="Ändra" />
                    
                </Columns>
            </asp:GridView>            
        </p>
        <p>
            &nbsp;</p>
        
    </div>
</asp:Content>
